package action.plan;

import java.util.List;

import persistence.model.TdfkfaPrjPsyj;
import service.PlanService;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

public class JudgedPlanResultAction extends ActionSupport {

    private static final long serialVersionUID = 1L;

    private PlanService planService;

    private String planId;

    private List<TdfkfaPrjPsyj> psyjList;

    public String present() throws Exception {
        return Action.SUCCESS;
    }

    public String loadResult() throws Exception {

        psyjList = planService.getPlanJudgeResult(planId);
        return Action.SUCCESS;
    }

    public String getPlanId() {
        return planId;
    }

    public void setPlanId(String planId) {
        this.planId = planId;
    }

    public void setPlanService(PlanService planService) {
        this.planService = planService;
    }

    public List<TdfkfaPrjPsyj> getPsyjList() {
        return psyjList;
    }

}
